<?php
/**
 * Date: 2017/11/10
 * Time: 10:08
 * Author: zeronlee
 */

namespace App\Http\Controllers\Backend;


use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class TestController extends Controller
{

    /**
     * 测试水印上传
     */
    public function index (Request $request){
        $file = $request->file;
        $file = is_null($file)? 'http://10.70.208.45/hnasrc/uploads/ueditor/php/upload/image/20180621/1529544987398155.jpeg' : $file;
        $resId =sendStreamFile($request,$file);
        dd($resId);
    }

}